﻿@model asMeishi.web.Models.user

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>


@using (Html.BeginForm())
{
<div>电邮: @Html.TextBoxFor(model => model.email) @ViewBag.email</div> 
<div>昵称: @Html.TextBoxFor(model => model.name) </div> 
<div>密码: @Html.PasswordFor(model => model.password) @ViewBag.password </div> 
<div>重复密码: @Html.Password("passwordconfirm") @ViewBag.passwordconfirm</div>
<div>验证码: @Html.TextBox("vcode","") 
<img alt="验证码" src="@Url.Action("vCode")" onclick="this.src='@Url.Action("vCode")?'+ Math.random()" style="cursor:pointer" /> @ViewBag.vcode </div>
<input type="submit" value="注册" />
}

